import 'package:flutter/material.dart';
import 'package:lifechart/page/home/edit.dart';

class HomePage extends StatefulWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('首页',style: TextStyle(fontSize: 12),),
        actions: [
          IconButton(onPressed: (){
            Navigator.push(context, MaterialPageRoute(builder: (context) => Edit()));
          },
              icon: Icon(Icons.border_color,size: 17,)
          ),
        ],
      ),

    );
  }
}
